<%@page import="helpers.UrlHelper"%>
<%@page import="helpers.HeaderHelper"%>
<%@page import="models.Country"%>
<%@page import="java.util.ArrayList"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	ArrayList<Country> countries  = (ArrayList<Country>) request.getAttribute("countries");
%>

<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>
</script>
    	<!-- 2 - main-content -->
    	<div class="main-content">
    		<div class="main-wrap">
	    		<div class="main-browser">
	    			<h2 class="title">Choose country</h2>
	    			<h3 class="sub-title">Visitor top free apps iphone, paid apps iphone, free app ipad, paid app ipad on many country </h3>
	    		</div>
	    		<div class="title-break">&nbsp;</div>
	    		<div class="countries">
	    			<ul>
	    			<% for (int i = 0; i < countries.size(); i++) { %>
	    				<li>
	    					<a href="/home?<%=UrlHelper.createUrl(countries.get(i).getIosCode2Digit().toLowerCase(), "country", request) %>" alt="<%=countries.get(i).getName() %>">
	    						<img width="30" height="30" alt="" src="/images/flags/34x34/<%=countries.get(i).getIosCode2Digit().toLowerCase()%>.png">
	    						<span><%=countries.get(i).getName() %></span>
	    					</a>
	    				</li>		
	    			<% } %>
	    			</ul>
	    			<div class="clear"></div>
	    		</div>
    		</div>
    	</div>
    	<!-- 2 - end main-content -->
<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>